﻿var myApp = angular.module('myApp', ['ngRoute']);

myApp.config(function ($routeProvider) {
    $routeProvider
    .when('/', {
        templateUrl: 'Scripts/app/views/home.html',
        controller: 'HomeController'
    })
    .when('details/:id', {
        templateUrl: 'Scripts/app/views/details.html',
        controller: 'DetailsController'
    })

    .otherwise({
        redirectTo: '/'
    })

});